﻿package plugin.map.ui
{
    import uiresource.map.*;

    public class PointFollowMouseUICtrl extends PointFollowMouseUI
    {
        private var _data:Object;

        public function PointFollowMouseUICtrl()
        {
            this.visible = false;
            return;
        }// end function

        public function get data() : Object
        {
            return this._data;
        }// end function

        public function set data(param1:Object) : void
        {
            if (!param1)
            {
                return;
            }
            this.visible = true;
            this._data = param1;
            pointLabel.text = "x:" + param1.x + " y:" + param1.y;
            return;
        }// end function

        override protected function initializeView() : void
        {
            super.initializeView();
            return;
        }// end function

        public function clear() : void
        {
            this.data = null;
            pointLabel.text = "";
            this.visible = false;
            return;
        }// end function

    }
}
